package com.zf.yichat.service;

import com.zf.yichat.model.StLowCarbonKnowledge;
import com.zf.yichat.utils.response.FsResponse;

public interface StCarbonService {

    /**
     * 查询知识列表
     * @return
     */
    FsResponse selectKnowledgeList();


    /**
     * 根据id查询知识
     * @param id
     * @return
     */
    StLowCarbonKnowledge selectKnowledgeById(Long id);

    /**
     * 新增、编辑知识
     * @param knowledge
     * @return
     */
    FsResponse saveKnowledge(StLowCarbonKnowledge knowledge);

    /**
     * 删除低碳知识
     * @param id
     * @return
     */
    FsResponse deleteKnowledge(Integer id);

    /**
     * 后台赠送浇水次数
     * @param userId
     * @return
     */
    FsResponse addNumbers(Long userId, Integer num);

}
